package com.tool.common.config;

import java.lang.reflect.Proxy;

/**
 * @author: zhoubin
 * @date: 2022/9/15
 */
public class DaoMapperProxy {

    public static <T> T getProxyInstance(Class clazz) {
        return (T) Proxy.newProxyInstance(clazz.getClassLoader(), new Class<?>[]{clazz}, new MapperInterceptor<T>());
    }
}
